package com.darcey.events
{
	// ----------------------------------------------------------------------------------------------------
	// Imports
	// ----------------------------------------------------------------------------------------------------
	import flash.events.Event;
	// ----------------------------------------------------------------------------------------------------
	
	
	// ----------------------------------------------------------------------------------------------------
	public class CustomEvent extends Event
	{
		// ----------------------------------------------------------------------------------------------------
		// Variable definitons
		// ----------------------------------------------------------------------------------------------------
		public var params:Object;
		// ----------------------------------------------------------------------------------------------------
		
		
		
		// ----------------------------------------------------------------------------------------------------
		public function CustomEvent(arg_type:String, arg_params:Object = null, arg_bubbles:Boolean = false, arg_cancelable:Boolean = false)
		{
			super(arg_type, arg_bubbles, arg_cancelable);
			this.params = arg_params;
		}
		// ----------------------------------------------------------------------------------------------------
		
		
		
		// ----------------------------------------------------------------------------------------------------
		// Override clone
		// ----------------------------------------------------------------------------------------------------
		override public function clone():Event{
			return new CustomEvent(type, this.params, bubbles, cancelable);
		}
		// ----------------------------------------------------------------------------------------------------
		
		
		
	} // class ends
	// ----------------------------------------------------------------------------------------------------
}